package ssau.knyazev.db.core;

public class DBTable {

	protected String[] columnNames = null;
	protected Object[][] values = null;
	
	public DBTable() { }
	
	public DBTable(String[] columnNames, Object[][] values) {
		this.columnNames = columnNames;
		this.values = values;
	}
	
	public String getColumnName(int i){
		return columnNames[i];
	}
	
	public void setColumnName(int i, String columnName){
		columnNames[i] = columnName;
	}
	
	public Object getValue(int row, int column){
		return values[row][column];
	}
	
	public void setValue(int row, int column, Object value){
		values[row][column] = value;
	}

	public void setColumnNames(String[] columnNames) {
		this.columnNames = columnNames;
	}

	public void setValues(Object[][] values) {
		this.values = values;
	}

	public String[] getColumnNames() {
		return columnNames;
	}

	public Object[][] getValues() {
		return values;
	}
	
}
